#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTHEADERITEMUI_LISTHEADERITEMUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTHEADERITEMUI_LISTHEADERITEMUI_H

#include "ControlUI.h"

class CListHeaderItemUI:public CControlUI
{
public:
	CListHeaderItemUI(void);
	virtual ~CListHeaderItemUI(void);

	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	void SetText(LPCTSTR pstrText);

	void Event(TEventUI& event);

	SIZE EstimateSize(SIZE szAvailable);
	void DoPaint(HDC hDC, const RECT& rcPaint);

	void SetWidth(int cxWidth);
	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

	RECT GetThumbRect(RECT rc) const;

protected:
	int m_cxWidth;
	POINT ptLastMouse;
	UINT m_uDragState;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CLISTHEADERITEMUI_LISTHEADERITEMUI_H
